var myKitchen = angular.module("myKitchen",["ui.router"])
	.config(function($stateProvider,$urlRouterProvider){
        $stateProvider.state("home", {
            url: "/home",
            templateUrl: "view/first/home.html",
            controller: "homeController"
        }).state("classify", {
            url: "/classify",
            templateUrl: "view/first/classify.html"
        }).state("cart", {
            url: "/cart",
            templateUrl: "view/first/cart.html",
            controller:"cartController"
        }).state("mine", {
            url: "/mine",
            templateUrl: "view/first/mine.html",
            controller:"mineController"
        })




        // mine部分
        .state("mine-setup",{
            url:"/mine-setup",
            templateUrl:"view/second/mine-setup.html"
        })
        .state("return-mine",{
            url:"/mine",
            templateUrl:"view/first/mine.html"
        })
          .state("return-home",{
            url:"/home",
            templateUrl:"view/first/home.html"
        })
          .state("mygroup.mineProduct",{
            url:"/mineProduct",
            templateUrl:"view/third/mineProduct.html"
            // controller:"mineProductController"
        })
          .state("mygroup",{
            url:"/mygroup",
            templateUrl:"view/second/mine-mygroup.html",
            controller:"mineMyGroupController"
        })

          // --classify 部分----------------------
          .state("classify.item1",{
            url: "/item1",
            templateUrl: "view/second/item1.html"
        }).state("classify.item2",{
            url: "/item2",
            templateUrl: "view/second/item2.html"
        })

        $urlRouterProvider.when("/","home")
	})
    